package team.pwy.mapper;

import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import team.pwy.pojo.entity.Img;
import team.pwy.pojo.entity.Movie;

import java.util.List;

@Repository
public interface ImgMapper {
//    查询电影所有图片
    @Select("select * from pwy.pwy_img where movie_id = #{value}")
    List<Img> findByMovieId(Integer movieId);

//    批量查询电影所有图片
    List<Img> findByMovieIds(List<Movie> movieIds);


}
